package com.cishu.orancle.enums;


import lombok.Getter;

/**
 * 自定义状态码枚举类
 */
@Getter
public enum RStatus {

    SUCCESS(1, "成功"),
    ERROR(0, "失败"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "未找到"),
    INTERNAL_SERVER_ERROR(500, "内部服务器错误");

    private final Integer code;
    private final String message;

    RStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
